package com.jsh.erp.feign.system;

import com.jsh.erp.datasource.entities.User;
import com.jsh.erp.utils.BaseResponseInfo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(name="jsh-system", path="/jshERP-boot/user", contextId = "LoginRemote")
public interface LoginRemote {
    @PostMapping(value = "/login")
     BaseResponseInfo login(@RequestBody User userParam);

    @GetMapping("/logout")
    BaseResponseInfo logout();
}
